package com.nuotu.datawall.clouddata.receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;


public class BootReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        if(intent.getAction().equals("android.intent.action.BOOT_COMPLETED")) {     // boot
            Intent LaunchIntent = context.getPackageManager().getLaunchIntentForPackage(context.getPackageName());
            context.startActivity(LaunchIntent);
//            Intent intent2 = new Intent(context, MainActivity.class);
//            intent2.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
//            context.startActivity(intent2);
        }  
    }
 
} 